package day0901;
//day0901.Test1
public class Test1 {
    public static void main(String[] args) {
        //compareTo()
        //String对象.compareTo(参数值)
        String s=new String("今天周五了");
        System.out.println(s.compareTo("今天周五!"));
        System.out.println(s.compareToIgnoreCase("今天是周五！"));
    }
}
